package com.trkj.service;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class orderA {
    @Before("execution(* com.trkj.service.OrderService.*(..))")
    public void logStart() {
        log.info("方法开始执行");
    }

    @After("execution(* com.trkj.service.OrderService.*(..))")
    public void logEnd() {
        log.info("方法执行结束");
    }
}
